using System;
using FytSoa.Common.Utils;
using System.ComponentModel.DataAnnotations;
using FytSoa.Application.User;
using SqlSugar;

namespace FytSoa.Application.Cm;

/// <summary>
/// 社区内容
/// </summary>
public class CmCommunityDto : AppEntity
{
    /// <summary>
    /// 用户
    /// </summary>
    public MemberDto User { get; set; }

    /// <summary>
    /// 标题
    /// </summary>
    public string Title { get; set; }

    /// <summary>
    /// 简介
    /// </summary>
    public string Summary { get; set; }

    /// <summary>
    /// 图片列表
    /// </summary>
    public List<string> ImageArr { get; set; } = new();

    /// <summary>
    /// 视频地址
    /// </summary>
    public string VideoUrl { get; set; }

    /// <summary>
    /// 点赞数量
    /// </summary>
    public int Praise { get; set; } = 0;

    /// <summary>
    /// 评论数量
    /// </summary>
    public int Comment { get; set; } = 0;

    /// <summary>
    /// 分享数量
    /// </summary>
    public int Share { get; set; } = 0;

    /// <summary>
    /// 审核状态
    /// </summary>
    public bool Status { get; set; } = false;

    /// <summary>
    /// 是否推荐
    /// </summary>
    public bool IsTop { get; set; } = false;

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime CreateTime { get; set; }=DateTime.Now;


}